package com.demo.springBoot2.quartz.quartz.job;

import cn.hutool.extra.spring.SpringUtil;
import com.demo.springBoot2.forest.response.UnfashionableLoveTalkResponse;
import com.demo.springBoot2.music.TtsMusicUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

/**
 * 定时给我朋友发邮件 + 土味情话 = 沸羊羊
 * */
@Slf4j
@Component
public class CallMyGirlFriendsJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

    }
    //https://api.uomg.com/api/rand.qinghua?format=json

//    @Override
//    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//        log.info("踏破天地灭星辰，世上无我这般人！无碍，些许风霜罢了~天不生我沸羊羊，脑内万古如长夜！既已身负万千期望，纵使千难万阻，我必一击破之，无人可挡！峰之巅，傲世间，有我沸羊羊便有天！");
//        TtsMusicUtil ttsMusicUtil = SpringUtil.getBean("TtsMusicUtil");
//        HttpInterface httpInterface = SpringUtil.getBean("HttpInterface");
//        UnfashionableLoveTalkResponse unfashionableLoveTalkResponse = httpInterface.getUnfashionableLoveTalk();
//        ttsMusicUtil.syntheticAudio(unfashionableLoveTalkResponse.getContent());
//    }
}
